<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<div class="admin-sidebar am-offcanvas" id="admin-offcanvas">
	<div class="am-offcanvas-bar admin-offcanvas-bar">
		<ul class="am-list admin-sidebar-list" id="collapase-nav-1">
			<li class="am-panel"><a
				data-am-collapse="{parent: '#collapase-nav-1'}" href="#/"><i
					class="am-icon-home am-margin-left-sm"></i> 首页</a></li>
			<shiro:hasAnyRoles name="admin">
			<li class="am-panel"><a
				data-am-collapse="{parent: '#collapase-nav-1', target: '#site-nav'}">
					<i class="am-icon-internet-explorer am-margin-left-sm"></i> 站点管理 <i
					class="am-icon-angle-right am-fr am-margin-right"></i>
			</a>
				<ul class="am-list am-collapse admin-sidebar-sub" id="site-nav">
					<li><a href="${path }/admin/site/list" target="workspace"><span
							class=" am-margin-left-sm"></span>站点列表 </a></li>
					<%-- <li><a href="${path }/admin/site/toAdd" target="workspace"><span
							class=" am-margin-left-sm"></span>添加站点 </a></li> --%>
				</ul></li>
				
			<li class="am-panel"><a
				data-am-collapse="{parent: '#collapase-nav-1', target: '#user-nav'}">
					<i class="am-icon-users am-margin-left-sm"></i> 用户管理 <i
					class="am-icon-angle-right am-fr am-margin-right"></i>
			</a>
				<ul class="am-list am-collapse admin-sidebar-sub" id="user-nav">
					<li><a href="${path }/admin/managerinfo/list" target="workspace"><i
							class="am-margin-left-sm"></i> 用户列表 </a></li>
					<li><a href="${path }/admin/roleinfo/list" target="workspace"><i
							class="am-margin-left-sm"></i>角色管理</a></li>
					<li><a href="${path }/admin/roleinfo/toManagerRole" target="workspace"><i
							class="am-margin-left-sm"></i>用户角色管理</a></li>
				</ul></li>
			</shiro:hasAnyRoles>
			
			<shiro:hasAnyRoles name="user">
			<li class="am-panel"><a
				data-am-collapse="{parent: '#collapase-nav-1', target: '#categry-nav'}">
					<i class="am-icon-clone am-margin-left-sm"></i>文章管理 <i
					class="am-icon-angle-right am-fr am-margin-right"></i>
			</a>
				<ul class="am-list am-collapse admin-sidebar-sub" id="categry-nav">
					<li><a href="${path }/admin/cmscategory/list" target="workspace"><span
							class=" am-margin-left-sm"></span> 类别列表 </a></li>
					<li><a href="${path }/admin/cmsarticle/list" target="workspace"><span
							class="am-margin-left-sm"></span> 文章列表 </a></li>
				</ul></li>
			</shiro:hasAnyRoles>
		</ul>

		<div class="am-panel am-panel-default admin-sidebar-panel">
			<div class="am-panel-bd">
				<p>
					<span class="am-icon-bookmark"></span> 公告
				</p>
				<p>时光静好，与君语；细水流年，与君同。—— Amaze UI</p>
			</div>
		</div>
	</div>
</div>